import axios from '@/libs/api.request'

/**
 * 重置用户头像昵称
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const getList = (params) => {
  return axios.request({
    url: 'Order/getOrderInfo',
    method: 'get',
    params: params
  })
}

/**
 * 导出订单
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const exportList = (params) => {
  return axios.request({
    url: 'Order/export',
    method: 'get',
    params: params,
    responseType: 'arraybuffer'
  })
}

// 获取订单金额
export const getMoney = (params) => {
  return axios.request({
    url: 'Order/getOrderMoney',
    method: 'get',
    params: params
  })
}

/**
 * 重置用户头像昵称
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const backOrder = (params) => {
  return axios.request({
    url: 'Order/backOrder',
    method: 'get',
    params: params
  })
}
